package cn.appsys.dao;

import cn.appsys.pojo.Category;

import java.util.List;
import java.util.Map;

/**
 * Created by Super Cui on 2017/10/14.
 */
public interface CategoryMapper {
    /**
     * 增加
     * @param category
     * @return
     */
    Boolean addCategory(Category category);

    /**
     * 删除
     * @param category
     * @return
     */
    Boolean delCategory(Category category);

    /**
     * 更新
     * @param category
     * @return
     */
    Boolean updateCategory(Category category);

    /**
     * ID查询
     *
     * @param category
     * @return
     */
    Category getCategoryById(Category category);

    /**
     * 一级菜单查询
     *
     * @return
     */
    List<Category> queryCategoryLevel1();

    /**
     * 子菜单查询
     *
     * @param category
     * @return
     */
    List<Category> queryCategoryLevel2(Category category);
}
